var express = require('express');
var router= new express.Router();
var stockService = require('../service/product')


/*router 调用 service*/
router.get('/list',function (req,res) {
    stockService.list(function (err,rows) {
        res.json(rows);
    })
})

module.exports = router